package com.youle.youleservice.app;

import android.app.Application;
import android.content.Intent;

import com.apkfuns.logutils.LogUtils;
import com.youle.youleservice.service.CoreService;
import com.youle.youleservice.util.ProcessUtil;

/**
 * Created by Administrator on 2018/8/8.
 */

public class YLApplication extends Application{

    @Override
    public void onCreate() {
        super.onCreate();
        startLocationServer();
        LogUtils.configTagPrefix="ylservice";
    }

    //开启服务
    private void startLocationServer(){
        String processName = ProcessUtil.getCurrentProcessName(this);
        if (processName.equals("com.youle.youleservice")){
            CoreService.startService(this);
        }
    }

}
